// type-alias

let sum:(x:number,y:number) => number

const result = sum(1,2)

type PlusType = (x:number,y:number) => number
let sum2:PlusType

const result2 = sum2(1,2)

type StringOrNumber = string | number
let m :StringOrNumber = 1
m = 'wt'


const str:'name' = 'name'

const num:1 = 1

type Directions = 'up'|'down'|'left'|'right'

let dir:Directions = 'down'

interface IName{
    name:string
}
// type IPerson = IName & {age:number}

// let person :IPerson = {name:'11',age:222}













